﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>气度网 - 气度如水</title>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/login.css" >
    <script language=javascript>
   String.prototype.trim = function() {
      return this.replace(/(^\s*)|(\s*$)/g, "");
   }
   function save() {
	// CheckDate(theform.enddate,"");
          
      if((theform.username.value).trim() == "") {
         alert("用户名不能为空!");
         theform.username.focus();
         return(false);
      }
      if((theform.passwd.value).trim() == "") {
         alert("密码不能为空!");
         theform.passwd.focus();
         return(false);
      }
      if((theform.code.value).trim() == "") {
         alert("验证码不能为空!");
         theform.code.focus();
         return(false);
      }
      theform.submit();
   }
</script>
</head>

<body>
	<div class="container">
    	<div class="logo_div">
        	<div class="logo"></div>
        </div>
    	<div class="main">
        	<!-- 登录框 -->
            <form name=userlogin action="${ctx}/user!login" method=post>
            <div class="divide_hide"></div>
        	<div class="login_form">
            	<div class="rows">
            		<div class="part_1">用户名</div>
                	<div class="part_2"><input class="form_line" type="text" size="20" name="userDTO.userName" onblur="check()"  /></div>
                </div>
            	<div class="rows">
            		<div class="part_1">用户密码</div>
                	<div class="part_2"><input class="form_line" type="password" size="20" name="userDTO.password"  /></div>                
                </div>
             	<div class="rows">
            		<div class="part_1">验证码</div>
                	<div class="part_2">
                    	<div class="part_11"><input class="check_" type="text" size="5" name="validationCode"  /></div>
                        <div class="part_22"><img src="${ctx}/validate" width="45" height="25"></div>
                        <a class="text" href="${ctx}/login"><div>看不清楚</div></a>
                    </div>                
                </div>               
            	<div class="rows">
            		<div class="part_1"></div>
                	<div class="part_2">
                    	<input class="button" type="submit" value="登录" name="sure" onclick="save()"  />
						<input class="button" type="button" value="取消" name="cancel" onclick="window.open('index','_blank');" />
                    </div>                
                </div>
            	<div class="rows">
            		<div class="part_1"></div>
                	<div class="part_2">
                		<font color='red'>
                			<s:property value="validationStatu" />
                		</font>
                	</div>                
                </div>

            </div>
        	</form>
        </div>
        
    <!-- 尾部 -->
    <div id="footer">
    	<!-- 一些链接 -->
		<div id="friendly_link">
        	<li class="friendly_link"></li>
            <li class="friendly_link"></li>
        </div>
        <div class="clear"></div>
        <!-- 一些链接 -->
        <div id="web_info">
        		<a class="friendly_link" href="#">气度网简介</a>&nbsp;|&nbsp;
                <a class="friendly_link" href="#">营业执照</a>&nbsp;|&nbsp; 
            	<a class="friendly_link" href="#">注册协议</a>&nbsp;|&nbsp;
            	<a class="friendly_link" href="#">法律声明</a>&nbsp;|&nbsp;
            	<a class="friendly_link" href="#">联系我们</a>&nbsp;|&nbsp;
                <a class="friendly_link" href="#">便民服务</a>&nbsp;|&nbsp;
                <a class="friendly_link" href="#">友情链接</a>&nbsp;|&nbsp;
            	<a class="friendly_link" href="#">使用帮助</a>&nbsp;|&nbsp;
            	<a class="friendly_link" href="#">广告服务</a>&nbsp;|&nbsp;
            	<a class="friendly_link" href="#">给我们留言</a>&nbsp;|&nbsp;
                <a class="friendly_link" href="#">导航地图</a>
        </div>
    	<hr />
        <!-- 一些证件和信息 -->
        <div class="copyright">Email : allenlinrui@gmail.com  |  Tel : 18915583294 / 0571-89898989  |  QQ : 67780691</div>
        <div class="copyright">Copyright © 2010-2011 中国科大软件学院软设专业Fine团队 版权所有</div>
        <div class="copyright"><img src="image/index/logo.gif" width="80px"> 苏ICP证：0000000号</div>
    </div>
    </div>
</body>
</html>
